<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org" >

<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>reply</title>
<link href="static/css/style.css" type="text/css" rel="stylesheet">
<meta content="MSHTML 6.00.3790.4772" name="GENERATOR">
</head>
<body>
	<div>
		<!--下面是head-->
		<div th:include="header :: header"></div>
		<!--显示楼主的gridview-->
		<div>
			<table id="ctl00_ContentPlaceHolder1_gdvTitle" style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellspacing="0" border="0">
				<tbody>
					<tr>
						<th scope="col">&nbsp;</th>
					</tr>
					<tr>
						<td>
							<div>
								<table class="t" cellspacing="0" cellpadding="0" width="98%" align="center">
									<tbody>
										<tr>
											<th class="h"><b><a th:href="@{/index}">首页</a>&gt;&gt;
												<a th:href="@{'getTitlesBykid?kindid='+${application.kind?.id}}" th:text="${application.kind?.name}"></a>&gt;&gt;
													<b>本页主题:</b> <span th:text="${title.title}"></span> </b></th>

											<td class="h" style="TEXT-ALIGN: right" th:if="${application.loginuser}==null">
													<img src="static/images/replyTopic.gif" onclick="javascript:alert('请先登录！');">
												</td>

											<td class="h" style="TEXT-ALIGN: right" th:if="${application.loginuser}!=null">
												<a href="#replycontent"><img src="static/images/replyTopic.gif"></a>
											</td>
										</tr>
										<tr>
											<td></td>
										</tr>
										<tr class="tr2">
											<td class="tar" colspan="2"><br></td>
										</tr>
										<tr>
											<td></td>
										</tr>
									</tbody>
								</table>
							</div> <!--楼主-->
							<table class="t" cellspacing="0" cellpadding="0" width="98%" align="center">
								<tbody>
									<tr class="tr1">
										<th class="tals" style="WIDTH: 22%" rowspan="2"><img title="我是楼主" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" src="static/images/online.gif"> <b><span>Boya</span>
										</b>
											<div style="MARGIN: 0.3em 0px 0.4em 0.2em"></div> <span class="gray">注册时间: <span>2017-01-17 09:37:30.0</span>
										</span></th>
										<th class="r_one" id="td_20160" style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 15px; PADDING-LEFT: 15px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; OVERFLOW: hidden; WIDTH: 80%; PADDING-TOP: 5px; BORDER-RIGHT-WIDTH: 0px" valign="top" height="100%">
											<h1 class="fl" id="subject_20160"></h1>
											<div class="c" id="p_20160"></div> <!--主题内容-->
											<table cellspacing="0" cellpadding="0" border="0">
												<tbody>
													<tr>
														<td width="14" background="static/images/top_l.gif" height="8"></td>
														<td background="static/images/top_c.gif"></td>
														<td width="16" background="static/images/top_r.gif" height="8"></td>
													</tr>
													<tr>
														<td width="14" background="static/images/center_l.gif"></td>
														<td background="static/images/center.gif">
															<div class="tpc_content">
																<span>灌~~~~~水~~~~~~~~~~~~</span>
															</div>
														</td>
														<td width="16" background="static/images/center_r.gif"></td>
													</tr>
													<tr>
														<td width="14" background="static/images/foot_l1.gif" height="42"></td>
														<td valign="top" background="static/images/foot_c.gif" height="42"><img src="static/images/foot_l3.gif">
														</td>
														<td width="16" background="static/images/foot_r.gif" height="42"></td>
													</tr>
												</tbody>
											</table> <br> <!--主题内容 -->
										</th>
									</tr>
									<tr class="tr1 r_one">
										<th style="BORDER-TOP-WIDTH: 0px; PADDING-LEFT: 15px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: bottom; HEIGHT: 84px; BORDER-RIGHT-WIDTH: 0px">
											<div class="c" id="w_20160"></div>
											<div class="tipad">

												<span class="gray">Posted: <span>2018-01-17 10:02:15.0</span>
												</span> | <span style="COLOR: #fa891b">楼 主</span>
											</div>
										</th>
									</tr>
								</tbody>
							</table> <!--楼主-->
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<!--显示楼主的gridview-->
		<!--显示楼层的gridview-->

		

		<div>
			<table id="ctl00_ContentPlaceHolder1_gdvReply" style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellspacing="0" border="0">
				<tbody>
					
						<tr>
							<th scope="col">&nbsp;</th>
						</tr>

						<tr th:each="reply:${replyPageInfo.list}">
							<td>
								<!--楼层-->
								<table class="t" cellspacing="0" cellpadding="0" width="98%" align="center">
									<tbody>

									<tr class="tr1">
										<th class="tals" style="WIDTH: 22%" rowspan="2"><img style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" src="static/images/online.gif"> <b><span th:text="${title?.user.name}"></span>
										</b>
											<div style="MARGIN: 0.3em 0px 0.4em 0.2em"></div> <span class="gray">注册时间: <span th:text="${title?.user.regedit_time}"></span>
											</span></th>
										<th class="r_one" id="Th1" style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 15px; PADDING-LEFT: 15px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; OVERFLOW: hidden; WIDTH: 80%; PADDING-TOP: 5px; BORDER-RIGHT-WIDTH: 0px" valign="top" height="100%">
											<h1 class="fl" id="H1_1"></h1>
											<div class="c" id="Div1"></div> <!--帖子内容-->
											<table cellspacing="0" cellpadding="0" border="0">
												<tbody>
												<tr>
													<td width="14" background="static/images/top_l.gif" height="8"></td>
													<td background="static/images/top_c.gif"></td>
													<td width="16" background="static/images/top_r.gif" height="8"></td>
												</tr>
												<tr>
													<td width="14" background="static/images/center_l.gif"></td>
													<td background="static/images/center.gif">
														<div class="tpc_content">
															<span th:text="${reply?.content}"></span>
														</div>
													</td>
													<td width="16" background="static/images/center_r.gif"></td>
												</tr>
												<tr>
													<td style="HEIGHT: 42px" width="14" background="static/images/foot_l1.gif"></td>
													<td style="HEIGHT: 42px" valign="top" background="static/images/foot_c.gif"><img src="static/images/foot_l3.gif"></td>
													<td style="HEIGHT: 42px" width="16" background="static/images/foot_r(1).gif"></td>
												</tr>
												</tbody>

											</table> <br>
										</th>
									</tr>
									<tr class="tr1 r_one">
										<th style="BORDER-TOP-WIDTH: 0px; PADDING-LEFT: 15px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: bottom; HEIGHT: 84px; BORDER-RIGHT-WIDTH: 0px">
											<div class="c" id="Div3"></div>
											<div class="tipad">
													<span class="gray">Posted: <span th:text="${reply?.reply_time}"></span>
													</span>
											</div>
										</th>
									</tr>

									</tbody>
								</table>
							</td>
						</tr>
					
				</tbody>
			</table>
		</div>
		<!--下面是内容页-->

<!--		<div style="padding-left: 600px">-->
<!--			<ul class="pagination">-->
<!--				<li class="page-item"><a class="page-link" th:href="@{getRepliesByTid(titleid=${title?.id},pageNo=${replyPageInfo.navigateFirstPage})}">首页</a></li>-->
<!--				<li class="page-item"><a class="page-link" th:href="@{getRepliesByTid(titleid=${title?.id},pageNo=${replyPageInfo.prePage})}">上一页</a></li>-->
<!--				<li class="page-item"><a class="page-link" th:href="@{getRepliesByTid(titleid=${title?.id},pageNo=${replyPageInfo.nextPage})}">下一页</a></li>-->
<!--				<li class="page-item"><a class="page-link" th:href="@{getRepliesByTid(titleid=${title?.id},pageNo=${replyPageInfo.pages})}">尾页</a></li>-->
<!--			</ul>-->
<!--		</div>-->
		


		<a name="replycontent"></a>
		  

				<table class="t3" cellspacing="0" cellpadding="0" width="98%" align="center">
					<tbody>
						<tr>
							<td height="5"></td>
						</tr>
					</tbody>
				</table>

		<table class="t3" cellspacing="0" cellpadding="0" width="98%" align="center" th:if="${application.loginuser}==null">
			<tbody>
			<tr>
				<td height="5">登录后，才能发表回复，请先 <b><a th:href="@{/index}">登录!</a>	</b>
				</td>
			</tr>
			</tbody>
		</table>

					<table class="t" id="Table1" cellspacing="0" cellpadding="0" width="98%" align="center" th:if="${application.loginuser}!=null">
						<form th:action="@{/insertReply}" method="post">
							<input type="hidden" name="kind_id" th:value="${session.kind?.id}">
							<input type="hidden" name="title_id" th:value="${title?.id}">
							<input type="hidden" name="user_id" th:value="${application.loginuser.id}">
						<tbody>
							<tr class="h">
								<th colspan="2">发表新回复</th>
							</tr>
							<tr class="tr3 f_one">
								<td style="HEIGHT: 14px"><span class="bold">用户名</span></td>

								<td class="altbg2" style="HEIGHT: 14px; WIDTH: 80%"><span th:text="${application.loginuser.name}"></span>
								</td>
							</tr>
							<tr class="tr3 f_one">
								<td class="altbg1" style="HEIGHT: 150px" valign="top"><span class="bold">内容 </span></td>
								<td class="altbg2" style="HEIGHT: 150px" valign="top" align="left">
									<div>
										<textarea style="WIDTH: 675px; HEIGHT: 150px" name="content"></textarea>
									</div> <br>
									<div align="center">
										<input class="btn1" type="submit" value="确定">
									</div>
								</td>
							</tr>
						</tbody>
						</form>
					</table>



		<div th:include="footer :: footer"></div>
		
	</div>

</body>
</html>